package cn.bdqn.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import cn.bdqn.bean.Bill;



/**
 * BillDao层接口的方法
 * */
public interface BillDao {
	//增加账单
	int addBill(Connection con, Bill bill) throws SQLException;
	//修改账单信息
	int updateBill(Connection con, Bill bill) throws SQLException;
	//删除账单
	int deleteBill(Connection con, Bill bill) throws SQLException;
	//获取账单列表总记录数
	int getCount(Connection con, Bill bill) throws SQLException;
	//获取分页列表
	List<Bill> getList(Connection con, Bill bill, int pageIndex, int pageSize) throws SQLException;
	//根据id获取相应的详细用户信息
	Bill getBillById(Connection con, int id) throws SQLException;	
	

}
